CREATE TABLE [dbo].[tb_cupos]
(
[idcupo] [int] NOT NULL IDENTITY(1, 1),
[CicloLectivo] [int] NOT NULL,
[Organizacion] [int] NOT NULL,
[Carrera] [int] NOT NULL,
[Curso] [varchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL CONSTRAINT [DF_tb_cupos_Curso] DEFAULT ((1)),
[CantidadDeCupos] [int] NOT NULL,
[CantidadDeDivisiones] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[tb_cupos] ADD CONSTRAINT [PK_tb_cupos] PRIMARY KEY CLUSTERED  ([idcupo]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[tb_cupos] WITH NOCHECK ADD CONSTRAINT [FK_tb_cupos_tb_GrupoDeCarreras] FOREIGN KEY ([Carrera]) REFERENCES [dbo].[tb_GrupoDeCarreras] ([idGrupoCarrera])
GO
ALTER TABLE [dbo].[tb_cupos] WITH NOCHECK ADD CONSTRAINT [FK_tb_cupos_tb_Organizaciones] FOREIGN KEY ([Organizacion]) REFERENCES [dbo].[tb_Organizaciones] ([idOrganizaciones])
GO
